/****************************************************************************
 * Copyright (c) 2010 Torkild U. Resheim
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Torkild U. Resheim  - initial API and implementation
 *****************************************************************************/
package no.resheim.buildmonitor.core;

import java.net.URI;

import no.resheim.buildmonitor.core.data.Server;

/**
 * 
 * @author Torkild Ulvøy Resheim
 * @since 1.0
 */
public interface IServerFactory {
	/**
	 * Connects to the specified URI and return the resulting {@link Server}
	 * instance.
	 * 
	 * @param uri
	 *            the URI to connect to
	 * @return the connected server instance
	 */
	public Server createInstance(URI uri);
}
